﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="setUserPwd.aspx.cs" Inherits="admin_setUserPwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width:400px;
            margin-left:50px;
            margin-top:30px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
    
    <table>
            <tr>
                <td colspan="2">
                    重置学生密码(长度为6~16)</td>
            </tr>
            <tr>
                <td>
                    输入用户名：
                </td>
                <td><asp:TextBox ID="tb_userName" runat="server" MaxLength="16"></asp:TextBox>
                    <asp:Button ID="btn_select" runat="server" CausesValidation="False" 
                        onclick="btn_select_Click" Text="查询" />
                    <asp:CustomValidator ID="cvr_userID" runat="server" ErrorMessage="*" 
                        onservervalidate="cvr_userID_ServerValidate"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td>
                    用户信息：</td>
                <td><asp:Label ID="lbl_name" 
                        runat="server" ForeColor="Red" Text="姓名"></asp:Label>
&nbsp;[<asp:Label ID="lbl_userID" runat="server" ForeColor="Red" Text="编号"></asp:Label>
                    ]</td>
            </tr>
            <tr>
                <td>密码：</td>
                <td>
                    <asp:TextBox ID="tb_pwd_1" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_pwd1" runat="server" 
                        ControlToValidate="tb_pwd_1" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>确认密码：</td>
                <td>
                    <asp:TextBox ID="tb_pwd_2" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_pwd2" runat="server" 
                        ControlToValidate="tb_pwd_2" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="tb_pwd_1" ControlToValidate="tb_pwd_2" Display="Dynamic" 
                        ErrorMessage="两次密码不相同"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                <center>
                    <asp:Button ID="btn_ok" runat="server" onclick="btn_ok_Click" Text="确认" />
&nbsp;
                    <asp:Button ID="btn_res" runat="server" onclick="btn_res_Click" Text="重置" />
                    </center>
                </td>
            </tr>
        </table>
        <br />
        <br />
    </div>
    </form>
</body>
</html>
